import {Component, ElementRef, ViewChild} from '@angular/core';
import {addNumbers, parseExpression} from "../lib/n-sql";

@Component({
  selector: 'app-root',
  template: `
    <!--The content below is only a placeholder and can be replaced.-->
    <div style="text-align:center">
      <h1>
        Welcome to {{title}}!
      </h1>
      <img width="300" src="">
    </div>
    <h2>Here are some links to help you start: </h2>
    <input style="width: 600px; height: 480px" #i/>
    <button (click)="add()">hah</button>
    
  `,
  styles: []
})
export class AppComponent {
  title = 'N-SQL';

  @ViewChild("i")
  input: ElementRef<HTMLInputElement>;
  add(){
    console.log(parseExpression(this.input.nativeElement.value));
  }
}
